package com.fanx.sample.web;

import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.Date;

@Slf4j
@SpringBootApplication
public class Boot {

    public static void main(String[] args) {
        ObjectMapper objectMapper = SpringApplication.run(Boot.class, args).getBean(ObjectMapper.class);
        log.warn("test-date-format: {}", objectMapper.getDateFormat().format(new Date()));
    }
}
